package com.glsc.ngateway.common.api.common.enums;


/**
 * @Title: ExceptionConstant
 * @Description: 异常常数类
 * @author: 张宁
 * @version: 1.0.0
 * @date: 2021/02/23 16:29
 */
public class ExceptionConstant {


    public static String CODE = "code";

    public static String STATUS = "status";


    public static String ERROR = "ERROR";

    public static String EXCEPTION = "EXCEPTION";


    public static Integer SHORT_MESSAGE_RESULT_EXC_1 = 0; // 表示 短线消息返回结果第一层异常，表示 http 请求端错误，或者异常

    public static Integer SHORT_MESSAGE_RESULT_EXC_2 = 1; // 表示 短信消息返回结果第二层异常，表示短信接收平台错误或者异常，

    public static Integer SHORT_MESSAGE_RESULT_COR = 2; // 表示短信平台返回结果符合标准格式，可以进行报文的解析


    // {"status":"ERROR","code":-1,"msg":"EmptyResultDataAccessException"}


    // 代表执行成功
    public static int OK = 0;

    // 代表执行失败
    public static int FAIL = 1;

    // 代表服务器运行异常
    public static int RunTime = 2;

    // 代表空指针异常
    public static int NullPointer = 3;

    // 类型转换异常
    public static int ClassCast = 4;

    // IO异常
    public static int IO = 5;

    // 未知方法异常
    public static int NoSuchMethod = 6;

    // 数组越界异常
    public static int IndexOutOfBounds = 7;

    // 400错误
    public static int HttpMessageNotReadable = 8;

    // 400错误
    public static int TypeMismatch = 9;

    // 400错误
    public static int MissingServletRequestParameter = 10;

    // 405错误
    public static int HttpRequestMethodNotSupported = 11;

    // 406错误
    public static int HttpMediaTypeNotAcceptable = 12;

    // 500错误
    public static int Run500 = 13;

    // 栈溢出
    public static int StackOverflow = 14;

    // 除数为0异常
    public static int Arithmetic = 15;

    // 其他异常
    public static int other = 16;


    public static int BussinessException = 17;

    public static int EmptyException = 18;


}
